package com.yq.design.observer;

/**
 * @ClassName Client
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/26 10:57
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        BaiduSite baiduSite = new BaiduSite();
        weatherData.registerObserver(baiduSite);
        SinaSite sinaSite = new SinaSite();
        weatherData.registerObserver(sinaSite);
        weatherData.changeData(12);
    }
}
